package com.bocai.service;

import com.bocai.bean.OrderInfo;
import com.bocai.utils.ResponseData;
import net.sf.json.JSONObject;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IOrderService {

    OrderInfo selectByOrderNumber(String orderNumber);

    ResponseData placeOrder(Integer userId,
                            String accountId,
                            Integer eventId,
                            Integer marketId,
                            Integer ruleTypeId,
                            Integer selectionId,
                            Double v1,
                            Double v2,
                            Double v3,
                            String placedResult,
                            BigDecimal requestPrice,
                            BigDecimal requestAmount,
                            String homeTeam,
                            String awayTeam,
                            String competitionName,
                            ResponseData data);

    int updateOrderStatus(JSONObject jsonObject);

    ResponseData selectOrderCount(OrderInfo orderInfo,ResponseData data);

    ResponseData selectOrderCountDetail(OrderInfo orderInfo,ResponseData data);

    ResponseData selectByUserId(Integer userId,Integer status,ResponseData data);

    ResponseData selectOrderManager(Map<String, Object> map, ResponseData data);

    List<OrderInfo> selectByMarketId(OrderInfo orderInfo);

    ResponseData selectAllMoneyNum(Integer userId, ResponseData data);

}
